package com.nttuan.model.dao.service;

import com.nttuan.model.entity.Location;

import java.util.List;

/**
 * Created by NT Tuan on 10/21/2014.
 */
public interface LocationService {
    public List<String> listAddress();
    public Location crateOrUpdate(Location location);
    public Location crateOrUpdate(String address);
    public int isExit(String address);
    public List<Location> locations(boolean isActive);
    public Location location(int locationId, boolean isActive);
    public Location location(int locationId);
    public Location location(String address);
    public boolean create(Location location);
    public boolean update(Location location);
    public boolean remove(int locationId);
    public boolean active(int locationId, boolean isActive);
    public boolean isExit(Location location);

}
